<?php

namespace App\Http\Controllers\V1\Api;


use App\Models\V1\Estate;
use App\Models\V1\Position;

use App\Models\V1\UserPermission;
use Illuminate\Http\Request;


class EstateController extends BaseController
{
    /**
     * 物业详情
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function Info(Request $request)
    {
        $query = Estate::query();
        $user = auth('box')->user();
        $query->where('preparatory_id', $user['preparatory_id']);
        $query->where('state', 1);

        $data = $query->first();
        return ajax_output(200, "成功", $data);
    }


}
